package com.huawei.appgallery.forum.posts.buoy.action;

import android.app.Activity;
import com.huawei.appgallery.assistantdock.base.externalaction.openviewaction.IOpenViewAction;
import com.huawei.appgallery.foundation.service.common.protocol.AppDetailActivityProtocol;
import com.huawei.appgallery.foundation.service.common.protocol.AppDetailActivityProtocol.Request;
import com.huawei.secure.android.common.intent.SafeIntent;
import o.bqx;
import o.cjk;
import o.cjm;
import o.cjo;
import o.dys.a;

public class OpenMoreProductAction extends IOpenViewAction {
    public static final String ACTION_OPEN_MORE_PRODUCT = "com.huawei.appgallery.forum.post.ACTION_OPEN_MORE_PRODUCT";
    public static final String BUNDLE_DETAIL_ID = "detailId";
    public static final String BUNDLE_TRACE = "trace";
    private static final String TAG = "OpenMoreProductAction";

    public OpenMoreProductAction(a aVar, SafeIntent safeIntent) {
        super(aVar, safeIntent);
    }

    public void onAction() {
        bqx.ˏ(TAG, "onAction");
        if (this.callback instanceof Activity) {
            cjo appDetailActivityProtocol = new AppDetailActivityProtocol();
            appDetailActivityProtocol.ˏ(new Request(this.intent.getStringExtra("detailId"), this.intent.getStringExtra("trace")));
            cjk.ˎ().ˋ((Activity) this.callback, new cjm("appdetail.activity", appDetailActivityProtocol));
        }
    }
}
